import java.util.Random;

public class class_59 {
    public static void main(String[] args) {
        int []arr=new int[10];
        int count=0;
        int sum=0;
        double avg=0;
        for (int i = 0; i < 10; i++) {
            Random r=new Random();
            arr[i]=r.nextInt(100)+1;
            sum+=arr[i];
        }
        avg=sum/10;
        for (int i = 0; i <10 ; i++) {
            if(arr[i]<avg)
            {
                count++;
            }
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.printf("%d ",arr[i]);
        }
        System.out.printf("\n");
        System.out.println(count);
        System.out.println("平均数:="+avg);
        System.out.println("和:="+sum);

    }
}
